package labox.innovation.loginserver.loginserverpackets;

import java.io.IOException;

/**
 * 登陆服务器发送给游戏服务器的账户验证的情况
 * 
 */
public class PlayerAuthResponse extends ServerBasePacket {

	public PlayerAuthResponse(String account, boolean response, String channelId) {
		writeByte(0x03);
		writeString(account);
		writeByte(response ? 1 : 0);
		writeString(channelId);
	}

	/* (non-Javadoc)
	 * @see net.sf.l2j.loginserver.serverpackets.ServerBasePacket#getContent()
	 */
	@Override
	public byte[] getContent() throws IOException {
		return getBytes();
	}
}